package com.excel

import com.annotations.DefaultValue
import kotlinx.serialization.Serializable

@Serializable
data class SheetHeadComment (
    @DefaultValue("null")
    var content: String? = null,
    @DefaultValue("null")
    var comment: String? = null,
    @DefaultValue("3")
    var col1: Short = 3,
    @DefaultValue("3")
    var row1: Int = 3,
    @DefaultValue("5")
    var col2: Short = 5,
    @DefaultValue("10")
    var row2: Int = 10
){

    var dx1: Int = 0
    var dy1: Int = 0
    var dx2: Int = 0
    var dy2: Int = 0

    /** 获取名称前边的简写  */
    val languages: String
        get() = this.content!!.split("|")[0]

}
